package cn.edu.scau.cmi.xiaozhenlin.interProgramming;

public class Truck extends Vehicle {
	private String name = "mr";
	private double weight = 0;

	public Truck(String name, double weight) {
		this.name = name;
		this.weight = weight;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public double getWeight() {
		return this.weight;
	}
}
